package com.xuqm.sdhbwfu.app.model


import com.google.gson.annotations.SerializedName


data class JobListModel(
    @SerializedName("alarm")
    val alarm: Any,
    @SerializedName("attachment")
    val attachment: MutableList<String>,
    @SerializedName("concreteCode")
    val concreteCode: String,
    @SerializedName("concreteName")
    val concreteName: String,
    @SerializedName("id")
    val id: Int,
    @SerializedName("inspectionTask")
    val inspectionTask: Any,
    @SerializedName("itemValue")
    val itemValue: List<ItemValue>,
    @SerializedName("locationCode")
    val locationCode: String,
    @SerializedName("locationName")
    val locationName: String,
    @SerializedName("name")
    val name: String,
    @SerializedName("normal")
    val normal: Any,
    @SerializedName("projectId")
    val projectId: Int,
    @SerializedName("projectType")
    val projectType: String,
    @SerializedName("sort")
    val sort: Int,
    @SerializedName("status")
    var status: String,
    @SerializedName("tip")
    var tip: String,
    @SerializedName("uninspected")
    val uninspected: Any,
    @SerializedName("rfid")
    val rfid: String,
    @SerializedName("upload")
    val upload: Boolean,
    @SerializedName("usercode")
    val usercode: Any,
    @SerializedName("username")
    val username: Any
) {
    data class ItemValue(
        @SerializedName("id")
        val id: Int,
        @SerializedName("name")
        val name: String,
        @SerializedName("ruleItem")
        val ruleItem: RuleItem?,
        @SerializedName("sort")
        val sort: Int,
        @SerializedName("status")
        val status: String,
        @SerializedName("unit")
        val unit: String,
        @SerializedName("value")
        var value: String,
        @SerializedName("valueType")
        val valueType: String
    ) {
        data class RuleItem(
            @SerializedName("alarm")
            val alarm: String,
            @SerializedName("alarmDown")
            val alarmDown: Double,
            @SerializedName("alarmUpper")
            val alarmUpper: Double,
            @SerializedName("id")
            val id: Int,
            @SerializedName("metricCode")
            val metricCode: String,
            @SerializedName("metricName")
            val metricName: Any,
            @SerializedName("name")
            val name: String,
            @SerializedName("sort")
            val sort: Int,
            @SerializedName("thresholdType")
            val thresholdType: String,
            @SerializedName("type")
            val type: String,
            @SerializedName("unit")
            val unit: String,
            @SerializedName("valueType")
            val valueType: String
        )
    }
}